import {User} from "@/services";
import {PageQueryParams} from "kf-web-library";

export interface OpLogPageQueryParams extends Partial<PageQueryParams> {
  searchText?: string;
}

export interface OpLog {
  id: number; //主键
  user: User; //操作用户
  userNickname: string; //操作用户名称(昵称)
  userIdentifier: string; //操作用户登录账号
  opTag: string; //操作标签
  opSummary: string; //操作类型
  opDescription: string; //操作说明
  javaMethod: string; //调用JAVA方法名
  requestMethod: string; //请求类型(GET,POST,PUT,DELETE...)
  requestUrl: string; //请求地址
  requestUserAgentHeader: string; //请求客户端 User-Agent (String)
  clientIp: string; //请求客户端ip
  execStartTime: string; //开始执行时间
  execEndTime: string; //结束执行时间
  execDuration: number; //执行时长ms
  param: string,
  result: string;
}


